<?


if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$mw_is_view = true;
$mw_is_list = false;
$mw_is_write = false;

include_once("./qpass_config.php");
include_once("$g4_path/common.php");

include_once("$board_skin_path/mw.lib/mw.skin.basic.lib.php");
include("view_head.skin.php");

if ($write['wr_key_password'] && !get_session($ss_key_name."_".$write['wr_id'])) {
    include("{$pc_skin_path}/mw.proc/mw.key.php");
    return;
}


include_once("./lib_qpass_inc.php");

$g4['title'] = "Qpass 문제은행";  
$g4['body_script'] = "onload='window.focus()'";

//include_once("./head_qpass.php");

if($smallCode) $targetCode = $smallCode;
else if($midCode) $targetCode = $midCode;
else if($bigCode) $targetCode = $bigCode;
else  $targetCode = "";


if($member[mb_id] == "") {

	  echo "<p align='center' style='margin: 100px 0 100px 0;color:blue; font-size:13px'>로그인 하신 후 이용가능합니다.</p>";
}
else if($targetCode) {
	  
	  $listing_line = 10;  /* 목록수 */
	  print_qpass_examList($targetCode, $listing_line, "desc");
}
else {

	  echo "<p align='center' style='margin: 100 0 100 0;color:blue; font-size:13px'>시험을 선택해 주세요</p>";
}


include_once("./tail_qpass.php");
?>
